//package com.codebattery.repository;
//
//import com.codebattery.domain.entity.Order;
//import com.codebattery.domain.model.MemeberOrderInfo;
//import org.springframework.data.jpa.domain.Specification;
//import org.springframework.data.jpa.repository.EntityGraph;
//import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
//import org.springframework.data.jpa.repository.Query;
//import org.springframework.data.repository.query.Param;
//import org.springframework.lang.Nullable;
//
//import java.util.List;
//
//
//public interface OrderRepository extends BaseRepository<Order, Long>, JpaSpecificationExecutor<Order> {
//
////    @Query(value = "SELECT o.order_id,i.product_pic,i.product_id,i.product_name,i.product_brand,o.user_id,o.create_time " +
////            "FROM t_order AS o, t_order_item AS i " +
////            "WHERE o.order_id = i.order_id and o.user_id = :memberId", nativeQuery = true)
////    @EntityGraph(value = "MemeberOrderInfo1", type = EntityGraph.EntityGraphType.FETCH)
////    public List<MemeberOrderInfo> queryMemberOrders(@Param("memberId") String memberId);
//
//
////    @Query(value = "SELECT o.orderId,i.productPic,i.productId,i.productName,i.productBrand,o.userId,o.createTime " +
////            "FROM Order AS o, OrderItem AS i " +
////            "WHERE o.orderId = i.orderId and o.userId = :memberId")
////    @EntityGraph(value = "MemeberOrderInfo1", type = EntityGraph.EntityGraphType.FETCH)
////    public List<Order> queryMemberOrders(@Param("memberId") Long memberId);
//
//
////    @EntityGraph(value = "MemeberOrderInfo1", type = EntityGraph.EntityGraphType.FETCH)
////    @EntityGraph(attributePaths = {"items", @attributePaths={}})
////    @Override
////    List<Order> findAll(@Nullable Specification<Order> spec);
//
//
//
//
//}